<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="author" content="lijinbo" />
    <script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/vue/2.6.14/vue.min.js"></script><script type="text/javascript" src="https://cdn.staticfile.org/spark-md5/3.0.2/spark-md5.min.js"></script><script type="text/javascript" src="https://cdn.staticfile.org/js-sha256/0.9.0/sha256.min.js"></script><script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/index.min.js"></script><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/theme-chalk/index.min.css" />
    <title>166-获取文件md5-sha等哈希数据</title>
    <script type="module" crossorigin src="../../../../static/js/166-index.html-037be34a.js"></script>
    <link rel="modulepreload" crossorigin href="../../../../static/common/modulepreload-polyfill-3cfb730f.js">
    <link rel="modulepreload" crossorigin href="../../../../static/common/collect-338e90a3.js">
    <link rel="modulepreload" crossorigin href="../../../../static/common/page-53f648eb.js">
  </head>

  <body>
    <div id="app">
      <p>
        <a href="https://blog.csdn.net/weixin_42357865/article/details/129820089" target="_blank">
          大文件分片处理参考
        </a>
      </p>
      <el-form label-width="80px">
        <el-form-item label="选择文件">
          <el-button type="primary" @click="handel">选择文件</el-button>
          <p>文件名：{{ file.name }}，文件大小：{{ file.size }}</p>
        </el-form-item>
        <el-form-item label="md5">
          <el-input type="textarea" readonly :value="md5"></el-input>
          <p>计算时长: {{ duration.md5 | formatTime }}</p>
        </el-form-item>
        <el-form-item label="sha256">
          <el-input type="textarea" readonly :value="sha256"></el-input>
          <p>计算时长: {{ duration.sha256 | formatTime }}</p>
        </el-form-item>
      </el-form>
    </div>
    
  </body>
</html>
